package com.lxc.ms.mapper;

import com.github.pagehelper.Page;
import com.lxc.ms.annotation.AutoFill;
import com.lxc.ms.dto.FenpaiDto;
import com.lxc.ms.dto.OrderPageDto;
import com.lxc.ms.entity.MsOrder;
import com.lxc.ms.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    void save(MsOrder msOrder);

    void delete(Long id);

    List<MsOrder> selectAll();

    void update(MsOrder msOrder);

    Page<MsOrder> search(OrderPageDto orderPageDto);

    @AutoFill(value = OperationType.INSERT)
    void fenpai(FenpaiDto fenpaiDto);
}
